home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / util / misc / stacksiz.lha / stacksize / src / stacksize.c
C/C++ Source or Header  |  1995-09-08  |  256b  |  14 lines

  1. #include <exec/tasks.h>
  2.  
  3. int main(int argc,char **argv)
  4. {
  5.     struct Task *mytask;
  6.     int input;
  7.  
  8.     if (argc==2) input=atoi(*++argv);
  9.     else exit(5);
  10.     mytask=FindTask(0);
  11.     if (((int)(mytask->tc_SPUpper)-(int)(mytask->tc_SPLower))<input) exit(5);
  12.     else exit(0);
  13. }
  14.